﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTcms.Common;
using System.Text.RegularExpressions;
namespace DTcms.Web
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Model.guanggao adModel = new BLL.guanggao().GetRandModel();
            //Utils.WriteTextLog("test", "这是测试的", DateTime.Now);
            //string aa = "1";
            //bool isok = Utils.isNumber(aa);
            //Response.Write(isok);
            //string username = "15212345678";
            //string[] a = new string[5];
            //a[0] = "18263338026";
            //a[1] = "15666612389";
            //a[2] = "13111111111";
            //a[3] = "13122222222";
            //a[4] = "15308169156";

            //    if (a.Contains(username))
            //        Response.Write("{\"status\":0, \"msg\":\"包含！\"}");
            //BLL.view_log viewbll = new BLL.view_log();
            //viewbll.AddLog(1, 21908, "菜鸟物流", 1, "本厂有半新挖掘机一辆，需要的联系13563316116", "从xunjia_check中查看", DateTime.Now);
            //Response.Write(DateTime.Now);
            //int abc = new BLL.xinxi_comment().GetCommentsNumByxinxi_id(804);
            //Response.Write(abc);


            //DateTime d = DateTime.Now;
            //string _date = d.Year + "-" + (d.Month < 10 ? "0" + d.Month : d.Month + "") + "-" + (d.Day < 10 ? "0" + d.Day : d.Day + "");
            //Response.Write(_date);
            //Response.Write( "正则测试开始<br/>");
            //string s = "abc@def chan sss@ggg and obc";

            //Regex reg = new Regex("(?<=@).*?(?= ) ", RegexOptions.IgnoreCase);
            //MatchCollection m = reg.Matches(s);
            //foreach (Match math in m)
            //{
            //    string imgUrl = math.ToString();
            //    Response.Write(imgUrl + "<br/>");
            //}
            //Response.Write("日期输出 原格式2019-12-31 14:49:47.000<br/>");
            //string date = "2019-12-31 14:49:47.000";
            //string date2= Convert.ToDateTime(date).ToString("yyyy/MM/dd hh:mm:ss");
            //Response.Write("日期输出 原格式"+ date2 + "<br/>");
            //TextBox1.Text ="111111";
            //DateTime kaihudate = DateTime.Parse("2019-11-11");
            //if (kaihudate > DateTime.Parse("2020-01-01"))
            //{
            //    Response.Write(kaihudate + "dayu");
            //    TextBox1.Text = kaihudate + "dayu";
            //}
            //else
            //{
            //    Response.Write(kaihudate + "xiaoyu");
            //    TextBox1.Text = kaihudate + "xiaoyu";
            //}

            Response.Write(new Guid("d2a9585f-0d4f-4df5-ae32-75451cafdef5"));
        }

        //protected void Button1_Click(object sender, EventArgs e)
        //{
        //    BLL.product bll = new BLL.product();
        //    DataTable dt = bll.GetList(0, "","id desc").Tables[0];

        //    foreach (DataRow dr in dt.Rows)
        //    {
        //        int id = int.Parse(dr["id"].ToString());
        //        int user_id = int.Parse(dr["user_id"].ToString());
        //        int company_id = int.Parse(dr["company_id"].ToString());

        //        if (user_id == 0)
        //        {
        //            int new_user_id = new BLL.users().GetUserID(company_id);
        //            bll.UpdateField(id, "user_id=" + new_user_id);
        //            Response.Write(id.ToString() + "<br>");
        //        }
        //        System.Threading.Thread.Sleep(100);
        //    }
        //}
    }
}